home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / mplus_1.exe / MPORIGIN.C < prev    next >
C/C++ Source or Header  |  1991-12-01  |  2KB  |  57 lines

  1. /*--------------------------------------------------------------
  2.  *  File:           MPORIGIN.C
  3.  *  Description:    To give MSC 6.0 compatibility without
  4.  *                  having to rebuild the MPLUS system.  Primarily
  5.  *                  for non-registered users who do not have access
  6.  *                  to source code.
  7.  *
  8.  *  Developed for the MPLUS Graphic Interface Library
  9.  *  Copyright 1989, 1990 by Michael Yam.
  10.  *  All rights reserved.
  11.  *-------------------------------------------------------------*/
  12.  
  13. #include <graph.h>
  14. #undef _setlogorg           /* defined in graph.h */
  15. #undef _getlogcoord
  16.  
  17. /*--------------------------------------------------------------
  18.  *  Function:       _setlogorg
  19.  *  Description:    MSC 6.0 renamed this function to _setvieworg,
  20.  *                  producing an unresolved external when linking 
  21.  *                  with MPLUS (which calls _setlogorg).  This
  22.  *                  is just a "wrapper" to make MPLUS aware of
  23.  *                  of _setvieworg.
  24.  *
  25.  *                  If you have source code, you don't need this.
  26.  *                  Just "remake" the system using MSC 6.0.
  27.  *  Return value:   struct xycoord
  28.  *--------------------------------------------------------------*/
  29. struct xycoord _far _cdecl _setlogorg(x,y)
  30. short x,y;
  31. {
  32.     return _setvieworg (x,y);
  33. }
  34.  
  35. /*--------------------------------------------------------------
  36.  *  Function:       _getlogcoord
  37.  *  Description:    MSC 6.0 renamed this function to _getvieworg,
  38.  *                  producing an unresolved external when linking 
  39.  *                  with MPLUS (which calls _getlogcoord).
  40.  *
  41.  *                  If you have source code, you don't need this.
  42.  *                  Just "remake" the system using MSC 6.0.
  43.  *  Return value:   struct xycoord
  44.  *--------------------------------------------------------------*/
  45. struct xycoord _far _cdecl _getlogcoord (x,y)
  46. short x,y;
  47. {
  48.     return _getviewcoord(x,y);
  49. }
  50. /*--------------------------------------------------------------*
  51.  *                      End of MPORIGIN.C                       *
  52.  *--------------------------------------------------------------*/
  53.  
  54.  
  55.  
  56.  
  57.